package com.xzq.erp.domain.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xzq.erp.enums.OrderStatus;
import com.xzq.erp.enums.PaymentMethod;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.ai.tool.annotation.Tool;
import org.springframework.ai.tool.annotation.ToolParam;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;


@Data
@Accessors(chain = true)
public class OrderVO{

    /**
     * 主键ID
     */
    @ToolParam(description = "订单编号")
    private Long id;

    /**
     * 客户名称
     */
    @ToolParam(description = "客户名称")
    private String customerName;

    /**
     * 商品名称
     */
    @ToolParam(description = "商品名称")
    private String productName;

    /**
     * 购买数量
     */
    @ToolParam(description = "购买数量")
    private Integer quantity;

    /**
     * 下单时间
     */
    @ToolParam(description = "下单时间")
    private LocalDateTime orderDate;

    /**
     * 订单状态:0-待付款,1-已付款,2-已发货,3-已完成,4-已取消
     */
    @ToolParam(description = "订单状态")
    private OrderStatus status;

    /**
     * 支付方式:1-支付宝,2-微信,3-银行卡
     */
    @ToolParam(description = "支付方式")
    private PaymentMethod paymentMethod;

    /**
     * 支付金额
     */
    @ToolParam(description = "支付金额")
    private BigDecimal paymentAmount;

}
